]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: Wait for authPrompt destruction before switching VT
authorJoan Torres Lopez <joantolo@redhat.com>
Thu, 12 Feb 2026 15:38:54 +0000 (16:38 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 2 Aug 2026 16:51:39 +0000 (18:51 +0200)
When switching to another user, wait until authPrompt is destroyed
and the clock transition animation completes before switching to
the login session VT.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4306>
(cherry picked from commit 5f7eb76031dc795a593e859566f519a458a81698)

js/ui/unlockDialog.js

index 971438a7cffbb24eaf4326116cff9b5a6b6935a3..0d4d7983318c2ee00966383ab14108ff209f7687 100644 (file)
@@ -899,8 +899,7 @@ export const UnlockDialog = GObject.registerClass({
     }
 
     _otherUserClicked() {
-        Gdm.goto_login_session_sync(null);
-
+        this._authPrompt.connect('destroy', () => Gdm.goto_login_session_sync(null));
         this._authPrompt.cancel();
     }